package cn.itcast;

import java.util.Arrays;

public class Demo3 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		//ctrl
		int pos = Arrays.binarySearch(new String[]{"a","b","c"}, "b");
		System.out.println(pos);
	}

}
